package org.fangzz.cameramgr.cameramonitor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created by cengruilin on 2018/6/7.
 */
@ConfigurationProperties(value = "org.fangzz.cameramgr.cameramonitor")
@Component
public class ApplicationConfig {
    private int maxConversionCount = 5;
    private String liveConversionCommand;
    private String recordConversionCommand;
    private String liveMonitorAddressFormat;
    private String recordMonitorAddressFormat;
    private String multiLiveConversionCommand;
    private String killConversionCommand;

    public String getMultiLiveConversionCommand() {
        return multiLiveConversionCommand;
    }

    public void setMultiLiveConversionCommand(String multiLiveConversionCommand) {
        this.multiLiveConversionCommand = multiLiveConversionCommand;
    }

    public String getLiveMonitorAddressFormat() {
        return liveMonitorAddressFormat;
    }

    public void setLiveMonitorAddressFormat(String liveMonitorAddressFormat) {
        this.liveMonitorAddressFormat = liveMonitorAddressFormat;
    }

    public String getRecordMonitorAddressFormat() {
        return recordMonitorAddressFormat;
    }

    public void setRecordMonitorAddressFormat(String recordMonitorAddressFormat) {
        this.recordMonitorAddressFormat = recordMonitorAddressFormat;
    }

    public int getMaxConversionCount() {
        return maxConversionCount;
    }

    public void setMaxConversionCount(int maxConversionCount) {
        this.maxConversionCount = maxConversionCount;
    }

    public String getLiveConversionCommand() {
        System.out.println(liveConversionCommand);
        return liveConversionCommand;
    }

    public void setLiveConversionCommand(String liveConversionCommand) {
        this.liveConversionCommand = liveConversionCommand;
    }

    public String getRecordConversionCommand() {
        return recordConversionCommand;
    }

    public void setRecordConversionCommand(String recordConversionCommand) {
        this.recordConversionCommand = recordConversionCommand;
    }

    public String getKillConversionCommand() {
        return killConversionCommand;
    }

    public void setKillConversionCommand(String killConversionCommand) {
        this.killConversionCommand = killConversionCommand;
    }
}
